package com.yiyuan.app.service;

import com.yiyuan.app.entity.po.TradeRecordAlipayDetailPO;
import com.wechat.pay.java.service.partnerpayments.app.model.Transaction;
import com.wechat.pay.java.service.refund.model.RefundNotification;

public interface PayNotifyService {
    /**
     * 微信支付回调
     * @param transaction
     * @return
     */
    boolean wxPayNotify(Transaction transaction) throws Exception;

    /**
     * 微信退款回调
     * @param transaction
     * @return
     */
    boolean wxRefundNotify(RefundNotification transaction);

    /**
     * 支付宝支付回调
     * @param transaction
     * @return
     */
    boolean aliPayNotify(TradeRecordAlipayDetailPO transaction) throws Exception;
}
